package com.hb.core.pojo.center.au.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hb.core.pojo.center.au.dto.OrgCustomConfigDTO;
import com.hb.core.pojo.center.au.dto.OrgDTO;
import com.hb.core.pojo.center.au.entity.Org;
import com.hb.core.pojo.parent.PageResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 组织架构信息表 Mapper 接口
 * </p>
 *
 * @author zhaojk
 * @since 2021-11-29
 */
public interface OrgMapper extends BaseMapper<Org> {

    /**
     *
     * @Description: 查询当前企业的父级企业
     * @Author: zhongdl
     * @Date:2022/1/20 10:03
     * @param orgId:
     * @return: {@link List< Org> }
     * @deprecated 方法局限性太大
     **/
    @Deprecated
    List<Org> listParent(@Param("orgId") Long orgId);

    /**
     *
     * @Description: 查询当前企业下的子企业(包含自己)
     * @Author: zhongdl
     * @Date:2022/1/20 10:09
     * @param orgId:
     * @return: {@link List< Org> }
     * @deprecated 方法局限性太大
     **/
    @Deprecated
    List<Org> listSon(@Param("orgId") Long orgId);

    Page<Org> pageTenderOrg(Page<OrgDTO> pages, @Param("orgDTO") OrgDTO orgDTO);

    Integer orgConfirmCount(@Param("orgDTO") OrgDTO orgDTO);

}
